/*
package com.example.xpvideo.Controller;

import com.example.xpvideo.entity.LsChannelLabel;
import com.example.xpvideo.entity.ResponseResult;
import com.example.xpvideo.enums.ErrCodeEnum;
import com.example.xpvideo.service.LsChannelLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

*/
/**
 * @author hjt
 * @create 2021-08-31 15:15
 * @describe：频道标签
 *//*

@RestController
@RequestMapping("channel")
public class ChannelLabelController {
    @Autowired
    private LsChannelLabelService channelLabelService;

    */
/**
     * 查询所有频道标签
     * @return
     *//*

    @GetMapping("findAllChannel")
    public ResponseResult findAllChannel() {
        List<LsChannelLabel> list = channelLabelService.list();
        return ResponseResult.responseResult(0, list);
    }

    */
/**
     * 添加频道标签
     * @param
     * @return
     *//*

    @PostMapping("addChannel")
    public ResponseResult addChannel(@RequestBody  @Validated LsChannelLabel channelLabel, BindingResult result) {
        if (result.hasErrors()) {
            return ResponseResult.responseResult(ErrCodeEnum.unknown_10001, result.getTarget());
        }
        boolean save = channelLabelService.save(channelLabel);
        return save ? ResponseResult.responseResult(0):ResponseResult.responseResult(ErrCodeEnum.unknown_20002, null);
    }

    */
/**
     * 用户操作,分配需要的频道
     * @param ids
     * @return
     *//*

    @PutMapping("allotChannel")
    public ResponseResult allotChannel(@RequestParam("userId")Integer userId, @RequestParam("ids") Integer[] ids) {
        return channelLabelService.allotChannel(userId,ids);
    }


}
*/
